import ChatMsgItem from './index.vue';
import { getComponentVirtualHeight } from "@/utils/utils";

export const getVirtualHeight = (data:msgTableItemType):number => {
  const chatBoxDom = document.getElementById('chatBox');
  let width = 0;
  if (chatBoxDom) {
     width = chatBoxDom.offsetWidth - 40;
  }
  return getComponentVirtualHeight(ChatMsgItem, data, width);
}
